package com.fangshi

import android.util.Log
import com.fangshi.api.EnterGarageRequest
import com.fangshi.api.RemoteService
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import okhttp3.internal.wait
import org.junit.Test

import org.junit.Assert.*
import java.util.logging.Logger

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        val job =CoroutineScope(Dispatchers.Default).launch {
            val resp = RemoteService.create().getRecords()
            println("-----------------------------------------------------ok")
            println(resp.toString())
        }
        while(!job.isCompleted){

        }


    }
}